package com.smiier.skin.net;

import java.util.ArrayList;

import android.content.Context;
import cn.o.app.net.NetTask;

import com.smiier.skin.constant.Constant;
import com.smiier.skin.net.QuestionSetTask.QuestionSetRequest;
import com.smiier.skin.net.QuestionSetTask.QuestionSetResponse;
import com.smiier.skin.util.GlobalSettings;

/**
 * 创建、编辑、悬赏、指定询问 问题
 * 
 * @author 杨文华
 * 
 */
public class QuestionSetTask extends
		NetTask<QuestionSetRequest, QuestionSetResponse> {

	public static class QuestionSetRequest extends ORequest {
		public String Token;
		public int is_user_del_question = GlobalSettings.IS_FALSE;
		public Long qid;
		public int Status;
		public String Content;
		public ArrayList<String> Part;
		public ArrayList<String> Symptom;
		public ArrayList<String> Pic;
		public int Age;
		public long Doctor_Uid;
		public Double Cost;
		public int Is_Appoint = GlobalSettings.IS_FALSE;
		public String PayPwd;
		public String appname = Constant.APP_NAME;
	}

	public static class QuestionSetResponse extends OResponse {
		public String Res;
	}

	@Override
	public void setContext(Context context) {
		super.setContext(context);
		mUrl = GlobalSettings.SERVER_URL + GlobalSettings.SERVER_URL_JOIN
				+ "?api=Question.Set";
		mRequestMethod = METHOD_GET;
	}
}
